<?php
$this->Html->addCrumb('<i class="fa fa-home"></i> ' . Inflector::camelize('Início'), '/', array('escape' => false));
$this->Html->addCrumb(__('Shopping Cart'), '/shop/cart', array('escape' => false));
$this->Html->addCrumb(__('Login'), NULL, array('escape' => false));
?>
<div class="col-xs-12 fundo_branco">
    <div class="text-left col-xs-9 col-xs-offset-2 col-md-4 col-md-offset-4" style="margin-top: 50px;">
        <?php
        echo $this->Form->create('User', array(
            'inputDefaults' => array(
                'div' => array('class' => 'col-xs-12'),
                'label' => false,
                'wrapInput' => false,
                'class' => 'form-control col-xs-12'
            ),
            'url' => array('action' => 'login'),
            'role' => 'form',
            'type' => 'post'
        ));
        ?>
        <div class="panel panel-default">
            <div class="panel-heading">Login</div>
            <div class="panel-body">

                <?php echo $this->Form->input('username', array('placeholder' => __('Username'), 'beforeInput' => '<div class="input-group"><span class="input-group-addon"><span class="glyphicon glyphicon-user"></span></span>', 'afterInput' => '</div>', 'autofocus' => 'autofocus')); ?>
                <?php echo $this->Form->input('password', array('placeholder' => __('Password'), 'beforeInput' => '<div class="input-group"><span class="input-group-addon"><span class="glyphicon glyphicon-lock"></span></span>', 'afterInput' => '</div>', 'autofocus' => 'autofocus')); ?>


            </div>
            <div class="panel-footer">
                <div class="text-center">
                    <?php echo $this->Form->button(__('Login'), array('icon' => 'fa fa-sign-in', 'type' => 'submit', 'class' => 'btn btn-primary')); ?>
                    <?php echo $this->Html->link(__('Sign up'), array('controller' => 'clients', 'action' => 'add'), array('icon' => 'fa fa-user', 'class' => 'btn btn-danger')); ?>
                </div>
            </div>
        </div>
        <?php echo $this->Form->end(); ?>
    </div>
</div>
<div class="clearfix"></div>